if (confirm("Are you sure?")){
	alert("You said yes");		
}
else {
	alert("You said no");
}